BNB = ../../bnb
ROOT = ..
CC = mpicc
CPP = mpicxx
INC = -I$(BNB) -I$(ROOT)
LIBS = $(BNB)/util/common/util.a -pthread

all: probot.exe
	
clean:
	rm -f *.o *.exe

probot.exe: probot.o
	$(CPP) -o probot.exe probot.o $(LIBS)

probot.o: probot.cpp
	$(CPP) $(INC) -c probot.cpp

dep:
	$(CC) $(INC) -MM -c *.c > deps.inc;\
	$(CPP) $(INC) -MM -c *.cpp >> deps.inc;\
        true

-include deps.inc